package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Employee {

    public static final Integer NOT_ADMIN = 0;//不是超管
    public static final Integer IS_ADMIN = 1;//是超管
    public static final Integer NOT_FROZEN = 0;//不冻结
    public static final Integer IS_FROZEN = 1;//冻结
    /**
     *
     */
    private Long id;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String email;

    /**
     *
     */
    private Integer age;

    /**
     *
     */
    private Integer admin = NOT_ADMIN;  //默认不是超管

    /**
     *
     */
    private Integer status = NOT_FROZEN;  // 默认不冻结

    /**
     *
     */
    private Long deptId;

    /**
     *
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss", timezone = "GMT+8")
    private Date hiredate;

    private Department department;

}